package com.glela.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.glela.platform.mapper.UnifiedTreatmentMapper;
import com.glela.platform.service.UnifiedTreatmentService;

@Service("unifiedTreatmentService")
public class UnifiedTreatmentServiceImpl implements UnifiedTreatmentService {

	@Autowired
	private UnifiedTreatmentMapper unifiedTreatmentMapper;
	
	/**
	 * 获取用户的销售额
	 */
	@Override
	public int userSalesAmountTotal(long userId) {
		// TODO Auto-generated method stub
		return unifiedTreatmentMapper.selectUserTotalSalesById(userId);
	}

	/**
	 * 用户佣金查询
	 */
	@Override
	public int userCommissionTotal(long userId) {
		// TODO Auto-generated method stub
		return unifiedTreatmentMapper.selectUserTotalCommissionById(userId);
	}

}
